Modifier Key Mask Constants
NEW WITH THE APPEARANCE MANAGER
You can use one or more of these mask constants in the modifier keys field of the'xmnu'
resource to determine which modifier key(s) must be pressed along with a character key to create a keyboard equivalent for selecting a menu item. These constants are also passed in and obtained bySetMenuItemModifiers
andGetMenuItemModifiers
, respectively.
enum { kMenuCommandModifiers = 0, kMenuShiftModifier = (1 << 0), kMenuOptionModifier = (1 << 1), kMenuControlModifier = (1 << 2), kMenuNoCommandModifier = (1 << 3) };Constant descriptions
kMenuCommandModifiers
- If no bit is set, only the Command key is used in the keyboard equivalent.
kMenuShiftModifier
- If this bit (bit 0) is set, the Shift key is used in the keyboard equivalent.
kMenuOptionModifier
- If this bit (bit 1) is set, the Option key is used in the keyboard equivalent.
kMenuControlModifier
- If this bit (bit 2) is set, the Control key is used in the keyboard equivalent.
kMenuNoCommandModifier
- If this bit (bit 3) is set, the Command key is not used in the keyboard equivalent.